package multipowny.ssrr;

import java.util.ArrayList;

public class ChanceSquare extends Square {
	
	int squareID;
	int randomNumber = 0;
	Chance random;
	String titel;
	String story;
	Parent parent;
	MultipownyActivity main;
	ArrayList<Chance> chanceList = main.getList();
	
	public ChanceSquare(String theName, Parent newParent, int theSquareID) {	
		name = theName;		
		parent = newParent;
		main = parent.getMultipownyActivity();
		squareID = theSquareID;
	}
	
	public void setChanceList(ArrayList<Chance> theChanceList) {
		chanceList = theChanceList;
	}
	
	public void getRandomChance() {
		random = chanceList.get((int) (Math.random()*15));
		
	}
	
	public int getID() {
		return randomNumber;
	}
}
